<%--
  Created by IntelliJ IDEA.
  User: dell
  Date: 2024/10/25
  Time: 22:01
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
            String path = request.getContextPath();
            String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
        %>
<html>
<head>
    <base href="<%=basePath%>">
    <title>网上调查步骤之二</title>
</head>
<body>
<%
    String name = request.getParameter("name");
    name = new String(name.getBytes("ISO-8859-1"),"UTF-8");
    String sex = request.getParameter("sex");
    if(sex.equals("male"))
        sex = "先生";
    else sex = "女士";
    session.putValue("namesex", name+sex);
%>
<%@include file="top.html"%>
<p>
    <%=name%>
    <%=sex%>
</p>
<p>你感兴趣的业余爱好有：</p>
<form name = "form1" method="post" action="result.jsp">

    <p>   <input type="checkbox" name="hobby0" value="影视观赏" id="film">影视观赏  </p>
    <p>  <input type="checkbox" name="hobby1" value="阅读书籍" id="book">阅读书籍  </p>
    <p> <input type="checkbox" name="hobby2" value="体育运动" id="sports">体育运动  </p>
    <p>  <input type="checkbox" name="hobby3" value="户外旅游" id="travel">户外旅游  </p>
    <p>  <input type="checkbox" name="hobby4" value="流行音乐" id="music">流行音乐 </p>
        <p>
        <input type="submit" name="Submit" value="下一步">
        <input type="reset" name="Reset" value="重置">
        </p>
</form>>
</body>
</html>
